package com.ruoyi.purchase.service;

import com.ruoyi.purchase.domain.AllocationPlan;

import java.util.List;

/**
 * AllocationPlanService接口
 * 
 * @author kevinness
 * @date 2025-01-17
 */
public interface IAllocationPlanService 
{
    /**
     * 查询AllocationPlan
     * 
     * @param allocationNo AllocationPlan主键
     * @return AllocationPlan
     */
    public AllocationPlan selectAllocationPlanByAllocationNo(String allocationNo);

    /**
     * 查询AllocationPlan列表
     * 
     * @param allocationPlan AllocationPlan
     * @return AllocationPlan集合
     */
    public List<AllocationPlan> selectAllocationPlanList(AllocationPlan allocationPlan);

    /**
     * 新增AllocationPlan
     * 
     * @param allocationPlan AllocationPlan
     * @return 结果
     */
    public int insertAllocationPlan(AllocationPlan allocationPlan);

    /**
     * 修改AllocationPlan
     * 
     * @param allocationPlan AllocationPlan
     * @return 结果
     */
    public int updateAllocationPlan(AllocationPlan allocationPlan);

    /**
     * 批量删除AllocationPlan
     * 
     * @param allocationNos 需要删除的AllocationPlan主键集合
     * @return 结果
     */
    public int deleteAllocationPlanByAllocationNos(String[] allocationNos);

    /**
     * 删除AllocationPlan信息
     * 
     * @param allocationNo AllocationPlan主键
     * @return 结果
     */
    public int deleteAllocationPlanByAllocationNo(String allocationNo);

    /**
     * 根据订单编号获取调拨计划
     *
     * @param orderNo 订单编号
     * @return 调拨计划列表
     */
    public List<AllocationPlan> selectAllocationPlanByOrderNo(String orderNo);
}
